package com.jdz.gxq.info.admin.registration.service;

import java.util.List;
import java.util.Map;

import com.jdz.gxq.info.admin.registration.bo.Registration;

public interface RegistrationService {
	
	/**
	 * Registration检索分页用，查询记录条数
	 * @return
	 */
	public int getRegistrationsCount(String enterpriseName);
	
	/**
	 * Registration检索
	 * @return
	 */
	public List<Registration> getRegistrations(Map<String, Object> params);
	
	/**
	 * 追加Registration
	 * @param registration
	 */
	public void insertRegistration(Registration registration);
	
	/**
	 * 更新Registration
	 * @param registration
	 */
	public void updateRegistration(Registration registration);
	
	/**
	 * 通过id得到registration
	 * @param id
	 * @return
	 */
	public Registration getRegistrationById(int id);
	
	/**
	 * 删除Registration
	 * @param registration
	 */
	public void deleteRegistration(int id);
	
	/**
	 * 验证registrationName是否重复
	 * (重复返回:false)
	 * flag: 1 追加时验证
	 * flag: 2 更新时验证
	 */
	public boolean checkRegistrationName(Registration paramRegistration, int flag);

}
